#include <stdio.h>
#include <stdlib.h>
#include"head.h"

int main(int argc,char *argv[])
{

int i;
int n1=0,n2=0,n3=0,n4=0;
   for(i=1;i<argc-1;i++)
    {
        switch(argv[i][2])
        {
            case 'c':n1=1;break;
            case 'x':n2=1;break;
            case 'd':n3=1;break;
            case 'o':n4=1;break;
        }
    }
     FILE * file=fopen(argv[argc-1],"r");
    if(file==NULL){printf("Error!\n");exit(0);}
    myod(file,n1,n2,n3,n4);
    return 0;
}

